package com.hcy.rabbitbasicmodel.enums;

/**
 * @Author huchenying
 * @Description
 * @Date 2021/12/23 14:43
 */
public enum OrderStatus {
    INIT(0,"订单预估"),
    START(1,"订单开始"),
    RECV(2,"司机接单"),
    DO(3,"去接乘客"),
    ORIGIN(4,"到达起点"),
    START_BUSINESS(5,"乘客上车，司机开始行程"),
    ARRIVE(6,"到达目的地，行程结束，未支付"),
    INIT_PAYMENT(7,"发起付款"),
    PAYMENT(8,"支付完成"),
    CANCEL(9,"取消");
    final int code;
    final String desc;
    OrderStatus(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
